<?php
/**
 * Created by PhpStorm.
 * User: idcu
 * Date: 2016/3/2
 * Time: 13:36
 */
namespace Admin\Controller;

class RegionController extends AdminController
{
    protected $searchRule = array(
        'area_no' => array('/^\d{6}$/','eq'),
        'area_name' => array('/^[\x{4e00}-\x{9fa5}A-Za-z0-9_]+$/u','like','%','%')
    );

    public function getAddress(){
        $this->ajaxReturn(D($this->modelName)->cascade());
    }
}